﻿@using Microsoft.AspNet.Identity
@model MVCExam.Models.ChatModel

@Html.HiddenFor(h => h.UserName)

@section scripts {

    <link href="~/Content/ChatStyle.css" rel="stylesheet" />
    <link href="~/Content/themes/base/jquery.ui.all.css" rel="stylesheet" />


    <script src="~/Content/themes/ui/jquery.ui.core.js"></script>
    <script src="~/Content/themes/ui/jquery.ui.widget.js"></script>
    <script src="~/Content/themes/ui/jquery.ui.resizable.js"></script>
    <script src="~/Content/themes/ui/jquery.ui.mouse.js"></script>
    <script src="~/Content/themes/ui/jquery.ui.draggable.js"></script>

    <script src="~/Scripts/jquery.signalR-2.0.3.js"></script>
    <script src="~/signalr/hubs"></script>

    <script src="~/Scripts/CRMExamScripts/Chat.js"></script>
}

@if (Request.IsAuthenticated)
{
    <div id="chatDiv">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title">Chat</h3>
                    </div>
                    <div class="panel-body">
                        <strong>Users online</strong> <br />
                        <div id="divusers" class="users"></div>
                    </div>
                </div>
            </div>
}
